﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace DARE.Save.DataStructures
{
    public class CFirstPersonCameraData: CCameraData
    {
        public bool Smooth;
        public float SmoothAmount;

        public override void FillDataStructure(object cam)
        {
            base.FillDataStructure(cam);
            CFirstPersonCamera camera = cam as CFirstPersonCamera;
            Smooth = camera.Smooth;
            SmoothAmount = camera.SmoothAmount;
        }

        public override void FillFromDataStructure(out object camera, params object[] paramsData)
        {
            base.FillFromDataStructure(out camera);
            (camera as CFirstPersonCamera).Smooth = Smooth;
            (camera as CFirstPersonCamera).SmoothAmount = SmoothAmount;
        }

        public override CCamera CreateInstance()
        {
            return new CFirstPersonCamera(Name);
        }
    }
}
